<div class="page page-usercenter page-manager">
	
	<div class="order-header clearfix" ng-if="userinfo.MG_userId">
		<a href="javascript:void(0);" ng-click="jump('/usercenter');" class="order-tab-title selected">用户中心</a>
		<a href="javascript:void(0);" ng-click="jump('/usercenter/manager');" class="order-tab-title">业务管理</a>
	</div>

  <div class="basic-info">
    <div class="avatar" ng-click="jump('/usercenter/profile');">
      <img ng-src="{{userinfo.avatar}}" ng-if="userinfo.avatar">
      <img src="catalog/view/theme/bhz/m/images/default-avarta.png" ng-if="!userinfo.avatar">
    </div>
    <div class="info" ng-click="jump('/usercenter/profile');">
      <div class="username">{{userinfo.fullname}}</div>
      <!-- <a href="javascript:void(0)" ng-click="logout()" class="logout">退出</a> -->
    </div>
    <img src="catalog/view/theme/bhz/m/images/space_line.png" class="separate-line">
    <div class="order-status">
      <table>
        <tr>
          <td class="status-item">
            <a href="javascript:void(0)" ng-click="gotoOrders('待付款')">
              <div class="count">{{orderList['待付款'].length || 0}}</div>
              <div class="status">待付款</div>
            </a>
          </td>
          <td class="status-item">
            <a href="javascript:void(0)" ng-click="gotoOrders('待发货')">
              <div class="count">{{orderList['待发货'].length || 0}}</div>
              <div class="status">待发货</div>
            </a>
          </td>
          <td class="status-item">
            <a href="javascript:void(0)" ng-click="gotoOrders('待收货')">
              <div class="count">{{orderList['待收货'].length || 0}}</div>
              <div class="status">待收货</div>
            </a>
          </td>
          <td class="status-item">
            <a href="javascript:void(0)" ng-click="gotoOrders('退换货')">
              <div class="count">{{orderList['退换货'].length || 0}}</div>
              <div class="status">退换货</div>
            </a>
          </td>
        </tr>
      </table>
    </div>
  </div>
  
	<!--消息通知-->
	<div class="message-div">
    
    	<ul class="message-ul">
        	<li ng-repeat="(key,m) in messages" ng-if="key<2"><a href="javascript:void(0)" ng-click="jump('/usercenter/message/'+m.send_id,true)">{{m.title|limitTo:8}}<span class="message-date">{{m.date_added}}</span></a></li>
        </ul>
		<div class="no-message" ng-if="messages.length<1">暂时没有收到任何消息</div>
        
    </div>
	<div class="to-message" ng-click="jump('/usercenter/message')"></div>
    <!--消息通知-->
  
  <div class="menu">
    <table class="menu-table">
      <tr>
        <td>
          <a href="javascript:void(0)" ng-click="gotoOrders('全部')">
            <img class="menu-icon" src="catalog/view/theme/bhz/m/images/menu_order.png">
            <span class="menu-text">全部订单</span>
          </a>
        </td>
		<td>
          <a href="javascript:void(0)" ng-click="gotoPeriods('全部')">
            <img class="menu-icon" src="catalog/view/theme/bhz/m/images/menu_period.png">
            <span class="menu-text">全部账期</span>
          </a>
        </td>
         <td>
          <a href="javascript:void(0)" ng-click="jump('/usercenter/profile')">
            <img class="menu-icon" src="catalog/view/theme/bhz/m/images/menu_profile.png" ng-click="jump('/usercenter/profile')">
            <span class="menu-text">我的资料</span>
          </a>
        </td>
         <td>
          <a href="javascript:void(0)" ng-click="jump('/usercenter/coupon')">
            <img class="menu-icon" src="catalog/view/theme/bhz/m/images/menu_card.png">
            <span class="menu-text">优惠券</span>
          </a>
        </td>
         <td>
          <a href="javascript:void(0)" ng-click="jump('/usercenter/wishlist')">
            <img class="menu-icon" src="catalog/view/theme/bhz/m/images/menu_fav.png">
            <span class="menu-text">我的收藏</span>
          </a>
        </td>
      </tr>
    </table>
  </div>

  <div class="user-datas">
    <ul class="data-items">
      <li class="data-item">
        <a href="javascript:void(0)">
          <i class="item-icon icon-diament"></i>
          <span class="item-content">
            <span class="item-name">我的采购总金额</span>
            <span class="item-data">{{userinfo.order_amount}}</span>
          </span>
        </a>
      </li>
	  <li class="data-item">
        <a href="javascript:void(0)" ng-click="jump('/usercenter/balance/')">
          <i class="item-icon icon-balance"></i>
          <span class="item-content">
            <span class="item-name">我的余额</span>
            <span class="item-data"></span>
          </span>
          <i class="icon-arrow-right"></i>
        </a>
      </li>
	  <li class="data-item">
        <a href="javascript:void(0)" ng-click="jump('/usercenter/deposit/')">
          <i class="item-icon icon-deposit"></i>
          <span class="item-content">
            <span class="item-name">彩票加盟</span>
            <span class="item-data"></span>
          </span>
          <i class="icon-arrow-right"></i>
        </a>
      </li>
      <li class="data-item">
        <a href="javascript:void(0)">
          <i class="item-icon icon-point"></i>
          <span class="item-content">
            <span class="item-name">我的积分</span>
            <span class="item-data">{{userinfo.points}}</span>
          </span>
          <i class="icon-arrow-right"></i>
        </a>
      </li>
      <li class="data-item">
        <a href="javascript:void(0)" ng-click="jump('page/point',false)">
          <i class="item-icon icon-award"></i>
          <span class="item-content no-border">
            <span class="item-name">积分说明</span>
            <span class="item-data"></span>
          </span>
          <i class="icon-arrow-right"></i>
        </a>
      </li>
    </ul>
  </div>

  <div class="user-logout">
    <span class="username">{{userinfo.fullname}}</span>
    <span class="separater">|</span>
    <a href="javascript:void(0)" ng-click="logout()">退出</a>
  </div>
</div>
